package com.example.flower_shop.exception;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class exception extends RuntimeException {
    private int code = 500;
    private String message;

    public exception(String message) {
        super(message);
        this.message = message;
    }

    public exception(int code) {
        super();
        this.code = code;
    }

    public exception(int code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public exception(int code, String message) {
        super();
        this.code = code;
        this.message = message;
    }

    public exception() {
        super();
    }


    public exception(String message, Throwable cause) {
        super(message, cause);
        this.message = message;
    }

    public exception(Throwable cause) {
        super(cause);
    }

    protected exception(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.message = message;
    }
}
